local skynet = require "skynet"
local socket = require "skynet.socket"
local string = string

skynet.start(function()
	print(SERVICE_NAME)
	local agent = skynet.newservice("webagent")
	local id = socket.listen("0.0.0.0", 8002)
	skynet.error("Listen web port 8002")
	socket.start(id , function(id, addr)
		skynet.send(agent, "lua", id)
	end)
end)

